<?php

namespace app\admin\model;

use app\admin\traits\ScopeUniacid;
use app\common\model\TimeModel;

class KnscyOrderTicket extends TimeModel
{

    protected $name = "order_ticket";
    protected $globalScope = ['uniacid'];
    use ScopeUniacid;

    protected $deleteTime = "delete_time";

    public function getPriceAttr( $value ){
        return number_format($value);
    }
    
    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'启用',];
    }

    public function getTicketJsonAttr( $value )
    {
        return json_decode($value, true);
    }

    public function getPeopleJsonAttr( $value )
    {
        return json_decode($value, true);
    }


}